package com.team.dao;

import com.team.entity.News;
import com.team.vo.SearchContent;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(News record);

    int insertSelective(News record);

    News selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(News record);

    int updateByPrimaryKeyWithBLOBs(News record);

    int updateByPrimaryKey(News record);

    int insertNews(News news);

    //动态查询
    List<News> selectAllNews(SearchContent searchContent);
    //修改状态
    int updateStatus(@Param("id") int id,@Param("status") int status);
    //修改置顶状态
    int updateUppid(@Param("id") int id,@Param("uppid") int uppid);
    //拒绝进行修改理由
    int updateReason(News news);

    List<News> findAllKind1();

    News findAllKind1ById(Integer id);

    List<News> findAllKind2();

    News findAllKind2ById(Integer id);
}